//C07:7.6:chcount.c -- logical operator.
#include <stdio.h>
#define  PERIOD  '.'
int main(void)
{
    int ch;
    int charcount = 0;
    while ((ch = getchar()) != PERIOD)
    {
        if(ch != '"' && ch != '\'')
        {
            charcount++;
        }
    }

    printf("There are %d non-quote characters.\n", charcount);
}